<?php
error_reporting(0);
$version = "2.4"; // Version Status
$act=$_GET[act];
if(file_exists('config.php')){ include 'config.php'; }
if($bot[lock]=='on'){ $s_pass = md5($bot[pass]); }else{ $s_pass = ''; }
$s_login_time = 3600 * 24 * 7;
$s_auth = false; // login status
if(strlen(trim($s_pass))>0){
if(isset($_COOKIE['index'])){
if(strtolower(trim($s_pass)) == strtolower(trim($_COOKIE['index']))) $s_auth = true;
}
if(isset($_REQUEST['pass'])){
$login = strtolower(trim($_REQUEST['pass']));
if(strtolower(trim($s_pass)) == md5($login)){
setcookie("index",md5($login),time() + $s_login_time);
$m = $_SERVER['PHP_SELF'];
header("Location: ".$m);
die();
}else{
setcookie("index",$login,time() - $s_login_time);
$m = $_SERVER['PHP_SELF'];
header("Location: ".$m);
die();
}
}
}
else $s_auth = true; // $s_pass variable (password) is empty , go ahead, no login page
if(isset($_REQUEST['logout'])){
setcookie("index",$login,time() - $s_login_time);
setcookie("file",$login,time() - $s_login_time);
$m = "tawon_ndast.php";
header("Location: ".$m);
}
if($act=='fileman'){
if($bot[lock]=='on'){
setcookie("file",md5($bot[pass]),time() + $s_login_time);
$m = "tawon_ndast.php";
header("Location: ".$m);
die();
}else{
$m = "tawon_ndast.php";
header("Location: ".$m);
}
}
if($act=='update'){   header("Location: update.php");}
$style = array("zVbNjpswED53pX0HS1GlrhSI84eAqNc8QW/VHgw24C7YCMwm26jvXv9AMARQValSfUk8Hs+Mv5n5hlVGECbV7fnpE38nVZLzSwgyijFhJykrEcaUpY7gZQi2fnm1hREXghe9PCM0zUQIUCO42ke8kqbvavvyCmqeUwxWSYLkUjoFqlLK7joHbenX89PKxAXqEjEVXMKZcGr6k0h3EH4+daJL6zPiOX4I+GjiyikjThfc1t2TovWRcC7+9O2H6bcfF5+ury69WyvsjA1BrsJBOU1ZCGLCZGSDMDUU4N9gAZ6fUCiP3tYAhe+0poJg5SnmOa9CsDqfITyfT6CLEpOYV0hQLkNlnJHWRsTxh30t0es0CtkzkUQofksr3jDsdP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ou3plhldQmUBHmM0HlteuCpSjWzsucf0qUyoLVqkCap8gLmfQjma50Qldmnx8z+jARHyGUahq6iznJCNJk2l+vf7dMajYromzJ9Ktj3VaHc3y3cxwMQj0MJ1Q7hy3icEDocHAQuU32KKRl3jwThdnr0a715t+xtR4HZbgdb6Pa3CnjIkWcHyeac6RPfFMCf5P2gqRcJsT/mcUPE8kVsv47md3qzm6Ox8uHkH4BbNq8rOHT03asAGom+ykfTbLbJ9uRDDzOClljtj42XWPtxFhBp3g6bdvkT8hcZ9BJVrXdyRVoNKd5q5UHXEFfeJqubrfUb7NbmMhK5YelvqFYVi8/1FtGvljLszX5RRmmTLnr1vJ8dZjcTIvWDsKv25m2HgAst3OImug5yIg2tJjRcTBQ5RtDGSqKsz7W5aCxNSwZ3XfXzXuzRhkn7pp5f14aBMoJWhaEk0g5bE6TaRpk2CL/EZltUQ/y/26GaGLEykxRKqOyqMb11MS0C0WCsJE2I89GCszXglb5vX6Ok1oWl3H5cptUY4lNqs8al0RH/yFEaDDHht08FCGA9X9SnRBF82MIQow7iOEYgnC/t5DOLNmPzZKusamK6enU/Xgblzwrlu+/AQ==",);
if(file_exists('senaTamvan.txt')){ $access=file('senaTamvan.txt'); }
$me= json_decode(auto('https://graph.facebook.com/me?access_token='.$access[0].'&fields=id,name'),true);
$editors = array('100000372358112',); $editor = json_decode(file_get_contents('http://graph.facebook.com/'.$editors[rand(0,count($editors)-1)]),true);
?>
<!DOCTYPE HTML PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="shortcut icon" href="http://facebook.com/favicon.ico"/>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<style type="text/css"><?php echo "\n".gzinflate(base64_decode($style[rand(0,count($style)-1)]))."\n"; ?></style>
<?php
if($s_auth==true){
echo '</head>
<body>

<div class="auto">';
if(file_exists('dataLog.php')){ include 'dataLog.php'; }
if($bot[ID_Groups] == 'on'){
$Sena_add_Grup='<select name="ID_Groups"><option value="on">On</option><option value="off">Off</option></select>';
}else{
$Sena_add_Grup='<select name="ID_Groups"><option value="off">Off</option><option value="on">On</option></select>';
}
#####Hosting URL#####
$instal   = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$host   = explode("index.php",$instal);
#####Hosting URL#####
$formJalan="\n".'<form  action="http://'.$host[0].'Sena_add_grup.php"><input type="submit" value="Mulai Menginvite"></form><br/>';
$formUpdater="\n".'<form action="https://www.facebook.com/VipSenaSentosa"><input type="hidden" name="act" value="update"><input type="submit" value="My FansPage"></form><br/>';
$formRefresh="\n".'<form action="'.$_SERVER['PHP_SELF'].'"><input type="hidden" name="act" value="refresh"><input type="submit" value="Install ulang"></form><br/>';

$formChange="\n".'<form action="https://www.facebook.com/groups/763733133648837/"><input type="hidden" name="act" value="change"><input type="submit" value="Join My grup"></form><br/>';
$formBlog="\n".'<form  action="http://wap-trick-senaliker.blogspot.com/"><input type="submit" value="Kunjungi My Blog"></form><br/>';
$formSetting="\n".'<form action="'.$_SERVER['PHP_SELF'].'"><input type="hidden" name="act" value="conf"><input type="submit" value="Setting Pengaturan"></form><br/>';
include 'tawon_ndast_mumet.php';
$formConfig='
<form action="'.$_SERVER['PHP_SELF'].'" method="post">

<hr/><hr/><hr/><font size="4">Menu Auto Invite Edited Sena</font><hr/><hr/><hr/>

<table width="100%"><tr><td width="70%">Auto Invite teman ke group</td><td width="30%">'.$Sena_add_Grup.'</a></td></tr></table>
<table width="100%"><tr><td width="50%">Masukan Id group yang mau di tambah member nya.<br/>jika kamu mau masukan Id group lebih dari satu, pisahkan Id group dengan tanda koma ( , )<br/>
<textarea name="ID_Groups" style="width: 150px; height: 20px;" title="">'.htmlspecialchars($SenaTamvan[ID_Groups]).'</textarea></td></tr></table><hr/>

<input name="simpen" value="Simpan" type="submit"/><center><input type="hidden" name="act" value=""><input type="submit" value="Kembali"/></center></form>';
$formInstal='
<form action="'.$_SERVER['PHP_SELF'].'" method="post">

<hr/><hr/><hr/><font size="4">Menu Auto Ala Sena</font><hr/><hr/><hr/>

<table width="100%"><tr><td width="70%">Auto Invite teman ke group</td><td width="30%">'.$Sena_add_Grup.'</a></td></tr></table>
<table width="100%"><tr><td width="50%">Masukan Id group yang mau di tambah member nya.<br/>jika kamu mau masukan Id group lebih dari satu, pisahkan Id group dengan tanda koma ( , )<br/>
<textarea name="ID_Groups" style="width: 150px; height: 20px;" title="">'.htmlspecialchars($SenaTamvan[ID_Groups]).'</textarea></td></tr></table><hr/>';
$formDataLog = '<table>Masukan email dan sandi facebook Kamu.<br/><form action="'.$_SERVER['PHP_SELF'].'" method="post"><br/>Email: <input name="email" type="text" value="'.htmlspecialchars($dataLog[email]).'"><br/>Sandi: <input name="pass" type="password" value="'.htmlspecialchars($dataLog[pass]).'"> <input type="submit" value="Masuk" name="dataLog"></table></form>';
$toket = 'https://www.facebook.com/dialog/oauth?response_type=token&display=popup&client_id=2318966938&redirect_uri=https://developers.facebook.com/tools/explorer/callback&scope=publish_stream,offline_access,read_stream,publish_actions';
//--DOWNLOAD SCRIPT BOT--//
if($_POST[mulai]){
$getScript = array('index','Sena_add_grup','refresh','config',);
for($i=1;$i<=count($getScript);$i++){
$save   =   auto('http://get-script-sn.googlecode.com/svn/'.$getScript[$i-1].'.inc');
$fopen   =   fopen($getScript[$i-1].'.php','w');
fwrite($fopen,$save);
fclose($fopen);
}
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?act=instal">';
}
if($_POST[dataLog]){
$data =  urldecode('<').'?php
$dataLog = array( "host" =>  "'.$host[0].'",
"pass" => "'.$_POST[pass].'",
"email" => "'.$_POST[email].'",
);
?'.urldecode('>');
$fx=fopen('dataLog.php','w');
fwrite($fx,$data);
fclose($fx);
auto('http://'.$host[0].'/refresh.php');
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?act=conf">';
}
if($_POST[pasang]){
$data =  urldecode('<').'?php
$SenaTamvan = array( "instal" => "ok",
"host" => "'.$host[0].'",
"lock" => "'.$_POST[lock].'",
"pass" => "'.$_POST[passwod].'",
"ID_Groups" => "'.$_POST[ID_Groups].'",
);
?'.urldecode('>');
$fx=fopen('config.php','w');
fwrite($fx,$data);
fclose($fx);

echo '<div class="info"><font color="red">Berhasil install</font></div>';
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'">';
}
if($_POST[simpen]){
$data =  urldecode('<').'?php
$SenaTamvan = array( "instal" => "ok",
"host" => "'.$host[0].'",
"lock" => "'.$_POST[lock].'",
"pass" => "'.$_POST[passwod].'",
"ID_Groups" => "'.$_POST[ID_Groups].'",
);
?'.urldecode('>');
$fx=fopen('config.php','w');
fwrite($fx,$data);
fclose($fx);

echo '<div class="info"><font color="red">Pengaturan di simpan</font></div>';
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'">';
}

if(file_exists('senaTamvan.txt')){ $access=file('senaTamvan.txt'); }
$me= json_decode(auto('https://graph.facebook.com/me?access_token='.$access[0].'&fields=id,name'),true);
if(!empty($me[id])){ echo "\n".'<div align="center">Selamat Datang<br/><img src="http://graph.facebook.com/'.$me[id].'/picture" width="150" height="100" alt=""/><br/>'.$me[name].'<br/>';}; if($bot[lock]=='on'){ echo "\n".'<form action="'.$_SERVER['PHP_SELF'].'?logout"><input type="hidden" name="logout" value="logout"><input type="submit" value="Keluar" title="Are you sure want to Logout '.$me[name].'???"/></form></div>';}else{ echo '</div>';}
if($act=='conf'){
if(empty($me[id])){
$alpa = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0","`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","[","{","]","}",";",":","'",'"',"<",".",">","/","?",);
$star = array("*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*",'*',"*","*","*","*","*");
echo 'Tidak bisa masuk ke facebook. pastikan email dan sandi yang kamu masukan adalah benar, atau klik <a href="http://adf.ly/rUmQA" title="Izinkan Aplikasi">Izinkan Aplikasi</a> lalu coba masuk kembali.<br/><hr/>'.$formDataLog.'<hr/>
<br/>atau login ke facebook kamu seperti biasa, lalu klik "Ini Oke". bila ada pemberitahuan akun anda di akses dari perangkat yang tidak di kenal kemudian Install Ulang bot kamu
<br/><center><form action="'.$_SERVER['PHP_SELF'].'"><input type="hidden" name="act" value="gofb"/><input value="Ke Facebook" type="submit"/></form>
</center><br/><center>'.$formRefresh.'</center>';
}else{
if(file_exists('config.php')){ echo $formConfig; }else{ echo $formInstal; }
}
}else{
if($act=='instal'){
echo $formDataLog;
$vx = urldecode('<').'?php '.urldecode('%24').'versi = "'.$version.'"'.urldecode('%3B').' ?'.urldecode('>');
$v = fopen('version.php','w');
fwrite($v,$vx);
fclose($v);
}else{
if(file_exists('dataLog.php')){
if(!empty($bot[acc])){
$astok = auto('http://'.$dataLog[host].'/other_token.txt');
$gw = json_decode(auto('https://graph.facebook.com/me?access_token='.$astok),true);
if(empty($gw[id])){
echo '<center></center>'."\n".'<meta http-equiv="refresh" content="1; url='.$_SERVER['PHP_SELF'].'?act=cek"/>';
}
}
echo $formJalan.$formUpdater.$formRefresh.$formBlog.$formChange;
$vx = urldecode('<').'?php '.urldecode('%24').'versi = "'.$version.'"'.urldecode('%3B').' '.urldecode('>');
$v = fopen('version.php','w');
fwrite($v,$vx);
fclose($v);
if(file_exists('config.php')){
echo $formSetting;
}else{
auto('http://'.$dataLog[host].'/refresh.php');
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?act=conf"/>';
}
}else{
if(!file_exists('cron.php')){
echo'<div align="center" color="red">Pilih salah satu</font></div><hr/>
<center><form method="post" action="index.php"><input name="mulai" value="Login To Auto Invite" type="submit"/><form></center><br/>';
}else{
echo'<br/><font color="red">Penginstallan gagal... Silahkan di ulang.</font><br/>'.$formRefresh.$formChange;
echo'<hr/>';
}
}
}
}
if($act=='gofb'){
unlink('coker_log');
echo'<meta http-equiv="refresh" content="0;url=http://m.facebook.com/l.php?u='.urlencode('http://'.$dataLog[host].'/index.php?act=cek').'">';
}
if($act=='change'){
unlink('coker_log');
unlink('dataLog.php');
unlink('senaTamvan.txt');
echo'<meta http-equiv="refresh" content="0;url='.$_SERVER['PHP_SELF'].'?act=instal">';
}
if($act=='cek'){
auto('http://'.$dataLog[host].'/refresh.php');
echo'<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?act=conf">';
}
if($act=='refresh'){
unlink('dataLog.php');
unlink('senaTamvan.txt');
unlink('config.php');
unlink('Sena_add_grup.php');
unlink('coker_log');
unlink('error_log');

echo '<meta http-equiv="refresh" content="0;url='.$_SERVER['PHP_SELF'].'"/>';
}
echo'
</div>
<div id="footer" align="center">SenaCopyRight &copy; '.gmdate("Y",time()+2500).' <a title="Version">Versi '.$version.'</a><br/><strong>Edited</strong> By <blink><strong><a href="http://www.fb.com/Mr.LoveS.NK" title="Editor@Facebook">Sena Sentosa</a></strong></blink><br/>
</div>
</body>
</html>';
}else{ ?>
</head>
<body>

<div class="auto" style="width:100%;text-align:center;">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<img src="http://graph.facebook.com/<?php echo $me[id]; ?>/picture" style="margin:2px;vertical-align:middle;" title="This is Belong to <?php echo $me[name]; ?>"/><br/>
<input name="pass" type="password" value="12345678901234567" onfocus="if(this.value == '12345678901234567')this.value = '';" onblur="if(this.value=='')this.value='12345678901234567';" title="Fill with Your Password"/><br />
<input type="submit" value="Login !" name="login" style="width:80px;" title="Login !"/><br/>
</form>
</div>
<?php
echo '<div id="footer" align="center">&copy; '.gmdate("Y",time()+7*3600).' <a title="Version">V '.$version.'</a><font size="4">by</font> <strong><blink><a href="http://www.fb.com/'.$editor[username].'" title="Editor@Facebook" target="_blank">'.$editor[name].'</a></blink></strong>
</div>
</body>
</html>';}
function auto($url){
$cx=curl_init();
curl_setopt($cx,CURLOPT_URL,$url);
curl_setopt($cx,CURLOPT_RETURNTRANSFER,1);
$ch=curl_exec($cx);
curl_close($cx);
return($ch);
}
?>